<?php
namespace haibao\cms\sengine;
use \haibao\frame\data\SphinxHelper;

abstract class Base extends SphinxHelper{
	public function buildExcerpts($docs,$index,$words,$opts = array()){
		//部分文档里含有的'/'是utf8格式的，导致高亮报错，暂不清楚是什么原因，暂时先替换成正常的'/'
		foreach ($docs as $key=>$value){
			$docs[$key] = str_replace('/﻿﻿','/',$value);
		}
		
		return parent::BuildExcerpts($docs, $index, $words,$opts);
	}
}